package sz.com.postoffice.jxyzwgcase.service.impl;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import sz.com.postoffice.jxyzwgcase.dao.BaseDao;
import sz.com.postoffice.jxyzwgcase.dao.master.EmolumentTemplateDao;
import sz.com.postoffice.jxyzwgcase.pojo.EmolumentTemplate;
import sz.com.postoffice.jxyzwgcase.service.EmolumentTemplateService;

import javax.annotation.Resource;


/**
 * @ClassName EmolumentTemplateServiceImpl
 * @Deacription 薪酬模板处理层
 * @Author jmx
 * @Date 2020/12/3 18:00
 * @Version 1.0
 **/
@Service
@Slf4j
public class EmolumentTemplateServiceImpl extends BaseServiceImpl<EmolumentTemplate> implements EmolumentTemplateService {

    @Resource
    private EmolumentTemplateDao emolumentTemplateDao;
    @Override
    protected BaseDao<EmolumentTemplate> getMapper() {
        return this.emolumentTemplateDao;
    }

    @Override
    public EmolumentTemplate findByCode(String code) {
        return emolumentTemplateDao.findByCode(code);
    }

}
